package adapter;

public class NewMediaPlayer implements AdvancedMediaPlayer {
    private WavPlayer wavPlayer = new WavPlayer();
    private OggPlayer oggPlayer = new OggPlayer();

    @Override
    public void playWav(String fileName) {
        wavPlayer.playWav(fileName);
    }

    @Override
    public void playOgg(String fileName) {
        oggPlayer.playOgg(fileName);
    }
}
